public class Solution{
    public boolean isSumEqual(String firstWord, String secondWord, String targetWord) {
        return (myToCharInt(firstWord) + myToCharInt(secondWord)) == myToCharInt(targetWord);
    }
    public int myToCharInt(String string){
        char[] arr = string.toCharArray();
        int ArrNumSum = 0;
        for(int i = 0; i < arr.length;i ++){
            ArrNumSum += (int) (((arr[i] - '0') - 49)* Math.pow(10,arr.length - i - 1));
            //这里减49的原因是'a' - '0'的值是49,这里的'0'也是一个字符
        }
        return ArrNumSum;
    }
}